package org.dromara.exam.domain.vo;

import org.dromara.exam.domain.ExamHistoryPaper;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 历年题库预览视图对象 exam_history_paper
 *
 * @author Lion Li
 * @date 2025-09-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ExamHistoryPaper.class)
public class ExamHistoryPaperVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 试卷ID
     */
    @ExcelProperty(value = "试卷ID")
    private Long paperId;

    /**
     * 年份月份（如202406）
     */
    @ExcelProperty(value = "年份月份", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=202406")
    private String paperYearMonth;

    /**
     * 级别（1-四级 2-六级）
     */
    @ExcelProperty(value = "级别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=-四级,2=-六级")
    private Long paperLevel;

    /**
     * 试卷名称
     */
    @ExcelProperty(value = "试卷名称")
    private String title;

    /**
     * PDF下载地址
     */
    @ExcelProperty(value = "PDF下载地址")
    private String pdfDownloadUrl;

    /**
     * PDF预览地址
     */
    @ExcelProperty(value = "PDF预览地址")
    private String pdfPreviewUrl;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


}
